package semantic.model;

import metamodel.PrimitiveTypeEnum;


public class UndefinedExpressionNode extends ExpressionNode {

	public UndefinedExpressionNode(String type, String value) {
		super(type, value);
	}
	
	public UndefinedExpressionNode(String value) {
		super("", value);
	}
	
	public UndefinedExpressionNode() {
		super("", "");
	}

	private String typeItShouldBe;
	
	public String getTypeItShouldBe() {
		return typeItShouldBe;
	}

	public void setTypeItShouldBe(String typeItShouldBe) {
		this.typeItShouldBe = typeItShouldBe;
	}

	public String getType() {
		return (typeItShouldBe == null) ? PrimitiveTypeEnum.UNDEFINED.name() : typeItShouldBe;
	}
	
	@Override
	public String toString() {
		return "[UndefinedExpressionNode(typeItShouldBe=" + typeItShouldBe + ")]";
	}
	
}
